package com.hsurosy.infrastructure.persistent.dao;

import com.hsurosy.infrastructure.persistent.po.RuleTreeNode;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @Author Hsu琛君珩
 * @Date 2024-10-20 1:43
 * @Description 规则树节点 Dao
 * @Version: v1.0.0
 */
@Mapper
public interface IRuleTreeNodeDao {

    /**
     * 根据规则树ID查询所有节点信息
     *
     * @param treeId tree_lock_1
     * @return
     * [
     *     RuleTreeNode(id=1, treeId="tree_lock_1", ruleKey="rule_lock", ruleDesc="限定用户已完成N次抽奖后解锁", ruleValue="1", ...),
     *     RuleTreeNode(id=2, treeId="tree_lock_1", ruleKey="rule_luck_award", ruleDesc="兜底奖品随机积分", ruleValue="101:1,100", ...)
     * ]
     */
    List<RuleTreeNode> queryRuleTreeNodeListByTreeId(String treeId);

    List<RuleTreeNode> queryRuleLocks(String[] treeIds);

}
